<template>
  <div class="dashboard-container">
    <el-form :inline="true">
      <el-form-item>
        <el-button type="primary" size="mini">新增会议</el-button>
      </el-form-item>
      <el-form-item label="会议名称：">
        <el-input placeholder="请输入会议名称" size="mini"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini">搜索</el-button>
      </el-form-item>
      <el-form-item label="会议时间：">
        <el-time-picker size="mini" v-model="value2" :picker-options="{
      selectableRange: '18:30:00 - 20:30:00'
    }"
          placeholder="任意时间点">
        </el-time-picker>
        <el-time-picker size="mini" arrow-control v-model="value3" :picker-options="{
      selectableRange: '18:30:00 - 20:30:00'
    }"
          placeholder="任意时间点">
        </el-time-picker>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" size="mini">筛选</el-button>
      </el-form-item>
    </el-form>
    <!--  -->
    <el-table
    :data="tableData"
    style="width: 100%">
    <el-table-column
      label="会议名称"
      width="180">
      <template slot-scope="scope">
        <i class="el-icon-time"></i>
        <span style="margin-left: 10px">{{ scope.row.date }}</span>
      </template>
    </el-table-column>
    <el-table-column
      label="会议时间"
      width="180">
      <template slot-scope="scope">
        <i class="el-icon-time"></i>
        <span style="margin-left: 10px">{{ scope.row.name }}</span>
      </template>
    </el-table-column>
    <el-table-column
      label="会议纪要"
      width="180">
      <template slot-scope="scope">
        <el-popover trigger="hover" placement="top">
          <p>姓名: {{ scope.row.name }}</p>
          <p>住址: {{ scope.row.address }}</p>
          <div slot="reference" class="name-wrapper">
            <el-tag size="medium">{{ scope.row.name }}</el-tag>
          </div>
        </el-popover>
      </template>
    </el-table-column>
    <el-table-column
      label="状态"
      width="180">
      <template slot-scope="scope">
        <i class="el-icon-time"></i>
        <span style="margin-left: 10px">{{ scope.row.state }}</span>
      </template>
    </el-table-column>
    <el-table-column label="操作">
      <template slot-scope="scope">
        <el-button
          size="mini"
          @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
        <el-button
          size="mini"
          type="danger"
          @click="handleDelete(scope.$index, scope.row)">删除</el-button>
      </template>
    </el-table-column>
  </el-table>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        value2: new Date(2016, 9, 10, 18, 40),
        value3: new Date(2016, 9, 10, 18, 40),
         tableData: [{
          date: '***会议',
          name: '2018-10-10',
          address: '附件',
          state:''
        }, {
          date: '***会议',
          name: '2018-10-10',
          address: '附件',
           state:''
        }, {
          date: '***会议',
          name: '2018-10-10',
          address: '附件',
           state:''
        }, {
          date: '***会议',
          name: '2018-10-10',
          address: '附件',
           state:''
        }]
      };
    }
  }

</script>

<style rel="stylesheet/scss" lang="scss" scoped>

</style>
